﻿using System;
using System.Collections.Generic;

namespace Sizebox.CharacterEditor
{
	// Token: 0x02000241 RID: 577
	public class BodyView : BaseSkeletonHandleView
	{
		// Token: 0x1700016F RID: 367
		// (get) Token: 0x06000C56 RID: 3158 RVA: 0x00064980 File Offset: 0x00062B80
		public override string DataId
		{
			get
			{
				return "body";
			}
		}

		// Token: 0x17000170 RID: 368
		// (get) Token: 0x06000C57 RID: 3159 RVA: 0x00064987 File Offset: 0x00062B87
		protected override string DATA_FILE_NAME
		{
			get
			{
				return "bodyview.dat";
			}
		}

		// Token: 0x06000C58 RID: 3160 RVA: 0x00064990 File Offset: 0x00062B90
		protected override void LoadDefaultKeys(CharacterEditor targetEditor)
		{
			base.Keys.Clear();
			List<EditBone> bones = targetEditor.SkeletonEdit.Skeleton.Bones;
			foreach (EditBone editBone in bones)
			{
				string transformKey = targetEditor.GetTransformKey(editBone.RealTransform);
				if (transformKey != null)
				{
					base.Keys.Add(transformKey);
				}
			}
		}
	}
}
